Skip to content

fix(kge): fail closed on invalid strict benchmark evidence - #1477

Merged
ruvnet merged 1 commit into
mainfrom
sail/kge-strict-evidence
Nov 10, 2026
Merged

ruvnet merged 1 commit into
mainfrom
sail/kge-strict-evidence

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Ports #1213 onto main. #1213 was stacked on #1208's branch, whose content landed as #1461.

This adds an opt-in --gate --strict-evidence mode to npm/packages/kge/bench/run.mjs. Default, --require-engine and --report-only behavior are unchanged. It closes the fail-open paths reproduced in #1213, so strict mode now fails on:

  • a training error hidden by a successful evaluation;
  • null or nonfinite ranking metrics;
  • a requested ANN, tie-check or adversarial arm that was skipped or failed (adversarial train() errors are no longer discarded);
  • a baseline whose schema, suite, scorer, config, tie mode, or dataset split and file hashes are incompatible, or whose transfer MRR is nonfinite.

Validation on this branch:

Known gap (from #1213): strict baseline comparison on a dataset with no transfer split is source-reviewed, but no test exercises it.

Release: none. bench/ and test/ are not in the package files.

Supersedes #1213.

🤖 Generated with claude-flow

Adds opt-in `--gate --strict-evidence` to bench/run.mjs on top of
`--require-engine` (#1461). Default, `--require-engine` and `--report-only`
behavior are unchanged.

Strict evidence requires: engine evaluation; completed requested training
with finite telemetry; finite, bounded filtered head/tail metrics for every
populated split; successful execution of every explicitly requested optional
arm (ANN, tie check, adversarial retraining, whose train() errors are no
longer discarded); and, when a baseline is supplied, a compatible schema,
suite, requested scorer, full recorded config, tie mode, dataset split and
file hashes, plus finite transfer MRR.

Ported from #1213 (11 commits stacked on #1208's branch, which landed as
#1461) onto main. Bench contract tests: 30/30 (22 existing + 8 strict).
Full kge suite: 0 failures, same 24 engine-absent skips as main.

Known gap carried from #1213: strict baseline comparison when the dataset
has no transfer split is source-reviewed but not exercised by a test.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet
ruvnet merged commit 73ba91f into main Nov 10, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant